package com.sitech.portal.system.service.impl;

import java.util.HashMap;
import java.util.List;

import com.sitech.ibnms.core.IPage;
import com.sitech.ibnms.core.PageForm;
import com.sitech.portal.system.dao.ISysParaDao;
import com.sitech.portal.system.service.ISysParaService;

public class SysParaServiceImpl implements ISysParaService {

	private ISysParaDao sysParaDao;
	
	public ISysParaDao getSysParaDao() {
		return sysParaDao;
	}

	public void setSysParaDao(ISysParaDao sysParaDao) {
		this.sysParaDao = sysParaDao;
	}

	@Override
	public void add(HashMap map) {
		// TODO Auto-generated method stub
		sysParaDao.add(map);
	}

	@Override
	public void deleteForTB_SYS_PARAByPK(String PARA_ID) {
		// TODO Auto-generated method stub
		String[] array = PARA_ID.split(",");
		for(int i=0;i<array.length;i++){
			String id = array[i];
			if(!id.equals(""))
				sysParaDao.deleteForTB_SYS_PARAByPK(id);
		}
	}

	@Override
	public IPage findListSysPara(PageForm pageForm) {
		// TODO Auto-generated method stub
		return sysParaDao.findListSysPara(pageForm);
	}

	@Override
	public HashMap findObjForTB_SYS_PARAByPK(String PARA_ID) {
		// TODO Auto-generated method stub
		return sysParaDao.findObjForTB_SYS_PARAByPK(PARA_ID);
	}

	@Override
	public HashMap findSysParaByParaId(String PARA_ID) {
		// TODO Auto-generated method stub
		return sysParaDao.findSysParaByParaId(PARA_ID);
	}

	@Override
	public List findSysParaByParaIdEndWith(String suffix) {
		// TODO Auto-generated method stub
		return sysParaDao.findSysParaByParaIdEndWith(suffix);
	}

	@Override
	public void update(HashMap map) {
		// TODO Auto-generated method stub
		sysParaDao.update(map);
	}

}
